#@adminLayout()
#define main()
#set(map={D:1,O:1},aTh=["姓名","动作","时间","IP","信息"],aTd=["accountId","name","createAt","ip","exception"])
<div class="card">
    #@cardIndex("操作日志管理","sys/operationlog",map,aTh,aTd)
</div>
#end
#define cardBtn()
<button class="btn btn-sm btn-outline-danger waves-effect cardBtn"
        data-url="/admin/sys/operationlog/clearOperationlog">
    <i class="zmdi zmdi-close"></i> 清空日志
</button>
#end
#define cardQuery()
<div class="col-sm-4">
    <div class="form-group">
        <lable><i class="zmdi zmdi-label-alt zmdi-hc-fw"></i>动作</lable>
        <input type="text" name="name" value="#(model.name??)"
               class="form-control" placeholder="请输入动作内容">
        <i class="form-group__bar"></i>
    </div>
</div>
#end
#define cardIndexTbody()
<td data-column="accountId">
    #for(xx:accountList)
    #if(xx.id==x.accountId)
    #(xx.fullName)
    #end
    #end
</td>
<td data-column="ip">#(x.ip)</td>
<td data-column="createAt">#date(x.createAt)</td>
<td data-column="exception">#(x.exception?x.exception:'<span style="color: #00CC33;">正常访问</span>')</td>
#end